<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>
<script language="javaScript">
function submit(){
	document.registerForm.submit();
}
</script>
<div class="leftWrap2">   
         <form action="<onein:url value="/register"/>" name="registerForm">
            <div class="mt11">
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5">
                      <h2>为宝宝量身定制行动指南</h2>
                        <p><strong>宝宝的生日：</strong><input name="birthdaytemp" id="birthday" type="text" class="Wdate" onclick="WdatePicker()" style="width:120px;"/></p>
                        <p style="margin-top:10px;"><strong>宝宝的性别：</strong><input type="radio" name="sex" value="1" checked="checked"/>男孩&nbsp;<input type="radio" name="sex" value="0"/>女孩</p>
                        <p style="margin-top:10px;"><strong>宝宝的血型：</strong>
                           <select name="select" id="select" style="width:50px;height:24px;font-size:14px;">
                             <option value="0"></option>
                             <option value="1">A</option>
                             <option value="2">B</option>
                             <option value="3">O</option>
                             <option value="4">AB</option>                                
                           </select>
                        </p>                         
                        <p style="margin-top:10px;"><strong>宝宝的性格：</strong></p>
                        <p style="margin-top:10px;"><input name="r" type="checkbox" value="" />活泼开朗<input name="r" type="checkbox" value="" />好动<input name="r" type="checkbox" value="" />要强好胜</p>
                        <p style="margin-top:10px;"><input name="r" type="checkbox" value="" />大胆外向<input name="r" type="checkbox" value="" />害羞<input name="r" type="checkbox" value="" />小心谨慎</p>   
                        <div style="margin-left:70px;margin-top:15px;"><a href="#" onclick="submit()" class="botton1"><span>立即定制</span></a></div>
                        <div class="ca"></div>
                    </div>
                    <div class="commonContentBottomWrap5"><span><a></a></span></div>
   			</div>
   			</form>
                <div class="commonContentTopWrap5"><span><a></a></span></div>
                    <div class="commonContentMidWrap5">
                      <h2>最新热门育儿文章</h2>
                   	  <ul class="textListBig ml11" style="margin-top:10px;">
		                 <c:forEach var="content" items="${contents}">
		                   <c:choose>
											<c:when test="${fn:length(content.title) > 11}">
											  <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" ><c:out value="${fn:substring(content.title, 0, 11)}..." /></a></li>
											</c:when>
											<c:otherwise>
											  <li><a title="${content.title }" class="indexSctionTextDetail" target="_blank" style="font-size:14px;line-height:24px;" href="<onein:url value="/learn/content/${content.id}.jhtml"/>" >${content.title}</a></li>
											</c:otherwise>
										</c:choose>
		                 </c:forEach>
		              </ul>
		              <div class="CommonMore" style="margin-top:10px;"><a title="进入育儿百科" target="_blank" href="<onein:url value="/learn"/>">更多育儿资讯...</a></div>
                    </div>
                 <div class="commonContentBottomWrap5"><span><a></a></span></div>
        </div>